export const setToken = (token) => {
    return uni.setStorageSync('token', token);
}

export const getToken = () => {
    return uni.getStorageSync('token');
}

export const removeToken = () => {
    uni.removeStorageSync('token');
    //移除用户的userId
    uni.removeStorageSync('userId');
    uni.removeStorageSync('cookie');
}


export const getCookie = ()=>{
    return uni.getStorageSync('cookie');
}